home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_riv_hints.cog < prev    next >
Text File  |  1999-11-15  |  14KB  |  334 lines

  1. # Jones 3D Cog Script
  2. #
  3. # RIV_Hints.cog
  4. #
  5. # cndlb = Red Candel
  6. #
  7. # [TRM]
  8. #
  9. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14.     message     startup
  15.     message     user0
  16.     message     entered
  17.     message     activated
  18.     
  19.     thing       player      local
  20.     
  21. # pre-river hints
  22.     thing       hint1       # Level 02-RIV. Hint 1: jump 0: Jump down from landing to first bridge
  23.     thing       hint2       # Level 02-RIV. Hint 2: jump 0: climb up bridge to roadway
  24.     thing       hint3       # Level 02-RIV. Hint 3: jump 0: bread crumb near sneak path (sneakpath1)
  25.     thing       hint4       # Level 02-RIV. Hint 4: jump 0: walk to boarder, trigger cutscene
  26.     thing       hint5       # Level 02-RIV. Hint 5: jump 0: go back to sneak path (sneakpath2)
  27.     thing       hint6       # Level 02-RIV. Hint 6: jump 0: climb up to access tower (sneakpath3)
  28.     thing       hint7       # Level 02-RIV. Hint 7: jump 0: jump to tower
  29.     thing       hint8       # Level 02-RIV. Hint 8: jump 0: climb down into raft house
  30.     thing       hint9       # Level 02-RIV. Hint 9: jump 0: open door to radio room
  31.     thing       hint10      # Level 02-RIV. Hint 10: jump 0: climb up into air vent
  32.     thing       hint11      # Level 02-RIV. Hint 11: jump 0: locker room (get raft and open fence)
  33.     
  34. # begin river hints
  35.     thing       hint12      # Level 02-RIV. Hint 12: jump 0: launch raft
  36.     thing       hint13      # Level 02-RIV. Hint 13: jump 0: get out of raft just past bridge to Shambala
  37.     thing       hint14      # Level 02-RIV. Hint 14: jump 0: visit candelabra
  38.     thing       hint15      # Level 02-RIV. Hint 15: jump 0: bread crumb on path to patch shack
  39.     thing       hint16      # Level 02-RIV. Hint 16: jump 0: walk thru patch shack area
  40.     
  41.     thing       hint17      # Level 02-RIV. Hint 17: jump 0: launch raft near elevator top
  42.     thing       hint18      # Level 02-RIV. Hint 18: jump 0: take a left at the first fork (riv1 fork
  43.     thing       hint19      # Level 02-RIV. Hint 19: jump 0: go right to tower
  44.     thing       hint20      # Level 02-RIV. Hint 20: jump 0: get out at tower shore
  45.     thing       hint21      # Level 02-RIV. Hint 21: jump 0: pull tower lever to open door
  46.     thing       hint22      # Level 02-RIV. Hint 22: jump 0: get the red candel
  47.     thing       hint23      # Level 02-RIV. Hint 23: jump 0: launch raft
  48.     thing       hint24      # Level 02-RIV. Hint 24: jump 0: take left path past waterfall
  49.     thing       hint25      # Level 02-RIV. Hint 25: jump 0: get the yellow candel
  50.     thing       hint26      # Level 02-RIV. Hint 26: jump 0: launch raft
  51.     thing       hint27      # Level 02-RIV. Hint 27: jump 0: take elevator back to top
  52.     thing       hint28      # Level 02-RIV. Hint 28: jump 0: launch raft near elevator top
  53.     thing       hint29      # Level 02-RIV. Hint 29: jump 0: take a left at first fork (riv1 fork)
  54.     thing       hint30      # Level 02-RIV. Hint 30: jump 0: take a left at next fork to candel temple
  55.     thing       hint31      # Level 02-RIV. Hint 31: jump 0: get the green candel at the cellar
  56.     thing       hint32      # Level 02-RIV. Hint 32: jump 0: launch raft
  57.     thing       hint33      # Level 02-RIV. Hint 33: jump 0: get out at the bridge
  58.     thing       hint34      # Level 02-RIV. Hint 34: jump 0: bread crumb inside masher room
  59.     thing       hint35      # Level 02-RIV. Hint 35: jump 0: entrance to candel room
  60.     thing       hint36      # Level 02-RIV. Hint 36: jump 0: get the violet candel (masher)
  61.     thing       hint37      # Level 02-RIV. Hint 37: jump 0: launch raft at bridge
  62.     thing       hint38      # Level 02-RIV. Hint 38: jump 0: ride the elevator up to top
  63.     thing       hint39      # Level 02-RIV. Hint 39: jump 0: bread crumb near patch shack
  64.     thing       hint40      # Level 02-RIV. Hint 40: jump 0: put all the candels in the candleabra and light them
  65.     thing       hint41      # Level 02-RIV. Hint 41: jump 0: walk across the bridge to Shambala  
  66.     
  67.     thing       candel_Red          # temple
  68.     thing       candel_Yellow       # tree
  69.     thing       candel_Green        # cellar
  70.     thing       candel_Violet       # masher
  71.     
  72.     # pre-river hints
  73.     sector      sec_JumpDown
  74.     sector      sec_ClimbBridge
  75.     sector      sec_SneakPath1  # hint3
  76.     sector      sec_Boarder
  77.     sector      sec_SneakPath2  # hint5
  78.     sector      sec_SneakPath3  # hint6
  79.     sector      sec_Tower
  80.     sector      sec_RaftHouse
  81.     sector      sec_RadioRoom
  82.     sector      sec_AirVent
  83.     
  84.     # begin river hints
  85.     sector      sec_RH_Launch       # raft house launch
  86.     sector      sec_B2S_Dock        # get out past B2S
  87.     sector      sec_Candelabra
  88.     sector      sec_Path2Shack1
  89.     sector      sec_PatchShack      # bread crumb
  90.     sector      sec_Cndl1_Dock      # dock at candel temple
  91.     sector      sec_Bridge_Dock
  92.     sector      sec_Mash_Crumb1
  93.     sector      sec_Mash_Crumb2
  94.     
  95.     sector      sec_ET_Launch       # elevator top launch
  96.     
  97.     sector      sec_Cndl1_GoRight   # go right towards candle
  98.     sector      sec_Bridge_Launch
  99.     
  100.     # rode the elevator up
  101.     sector      sec_ET_Elev1        linkID=1
  102.     sector      sec_ET_Elev2        linkID=1
  103.     
  104.     #surface     srf_ET_Launch       # elevator top launch
  105.     surface     srf_Riv1_GoLeft     # go left at riv1 fork
  106.     #surface     srf_Cndl1_GoRight   # go right towards candle
  107.     surface     srf_Cndl1_Launch
  108.     surface     srf_Cndl1_GoLeft    # go left towards tree
  109.     surface     srf_Cndl2_Launch    # launch raft at tree
  110.     surface     srf_Riv1_GoLeft2    # go left to cellars
  111.     surface     srf_Cndl3_Launch    # launch the raft at cellar
  112.     #surface     srf_Bridge_Launch
  113.     
  114.     # locker and fence hint11
  115.     cog         cog_LockerRaft
  116.     cog         cog_Fence
  117.     
  118.     cog         cog_Lever
  119.     cog         cog_Candelabra
  120.     
  121.     # ** misc ints **
  122.     int         sender      local
  123.     int         source      local
  124.     int         count=0     local
  125.     
  126.     int         solved_Hint22=0         local
  127.     int         solved_Hint31=0         local
  128.     int         solved_Hint36=0         local
  129.     
  130. end
  131.  
  132. # ========================================================================================
  133.  
  134. code
  135.  
  136. startup:
  137.  
  138.     player = GetLocalPlayerThing();
  139.     return;
  140.  
  141. # ========================================================================================
  142.  
  143. user0:
  144.  
  145.     Print("Hints: user0");
  146.     
  147.     # get raft and open fence to solve hint11
  148.     if((GetSenderRef() == cog_LockerRaft) || (GetSenderRef() == cog_Fence))
  149.     {
  150.         if(GetHintSolved(hint11) == 0)
  151.         {
  152.             count = count + 1;
  153.             
  154.             if(count == 2) SetHintSolved(hint11);
  155.         }
  156.     }
  157.     
  158.     else if((GetSenderRef() == cog_Lever) && (GetHintSolved(hint21) == 0)) SetHintSolved(hint21);
  159.     
  160.     else if((GetSenderRef() == cog_Candelabra) && (GetHintSolved(hint40) == 0)) SetHintSolved(hint40);
  161.  
  162.     return;
  163.  
  164. # ========================================================================================
  165.  
  166. entered:
  167.  
  168.     player = GetLocalPlayerThing();
  169.     sender = GetSenderRef();
  170.     source = GetSourceRef();
  171.     
  172.     Print("hints: entered");
  173.  
  174. # *********************
  175. # ** pre-river hints **
  176. # *********************    
  177.     
  178.     if(source == player)
  179.     {
  180.         if((sender == sec_JumpDown) && (GetHintSolved(hint1) == 0)) SetHintSolved(hint1);
  181.         
  182.         else if((sender == sec_ClimbBridge) && (GetHintSolved(hint2) == 0)) SetHintSolved(hint2);
  183.         
  184.         else if((sender == sec_SneakPath1) && (GetHintSolved(hint3) == 0)) SetHintSolved(hint3);
  185.         
  186.         else if((sender == sec_Boarder) && (GetHintSolved(hint4) == 0)) SetHintSolved(hint4);
  187.         
  188.         else if((sender == sec_SneakPath2) && (GetHintSolved(hint5) == 0) && (GetHintSolved(hint4) == 1)) SetHintSolved(hint5);
  189.         
  190.         else if((sender == sec_SneakPath3) && (GetHintSolved(hint6) == 0))
  191.         {
  192.             if(GetHintSolved(hint3) == 0) SetHintSolved(hint3);
  193.             if(GetHintSolved(hint4) == 0) SetHintSolved(hint4);
  194.             if(GetHintSolved(hint5) == 0) SetHintSolved(hint5);
  195.             SetHintSolved(hint6);
  196.         }
  197.         
  198.         else if((sender == sec_Tower) && (GetHintSolved(hint7) == 0)) SetHintSolved(hint7);
  199.         
  200.         else if((sender == sec_RaftHouse) && (GetHintSolved(hint8) == 0)) SetHintSolved(hint8);
  201.         
  202.         else if((sender == sec_RadioRoom) && (GetHintSolved(hint9) == 0)) SetHintSolved(hint9);
  203.     
  204.         else if((sender == sec_AirVent) && (GetHintSolved(hint10) == 0)) SetHintSolved(hint10);
  205.         
  206. # ***********************    
  207. # ** begin river hints **
  208. # ***********************
  209.     
  210.         else if((sender == sec_RH_Launch) && (GetHintSolved(hint12) == 0) && (GetHintSolved(hint11) == 1)) SetHintSolved(hint12);
  211.         
  212.         else if((sender == sec_B2S_Dock) && (GetHintSolved(hint13) == 0)) SetHintSolved(hint13);
  213.         
  214.         else if((sender == sec_Candelabra) && (GetHintSolved(hint14) == 0)) SetHintSolved(hint14);
  215.         
  216.         else if((sender == sec_Path2Shack1) && (GetHintSolved(hint15) == 0)) SetHintSolved(hint15);
  217.         
  218.         else if((sender == sec_PatchShack) && (GetHintSolved(hint16) == 0)) SetHintSolved(hint16);
  219.         
  220.         else if((sender == sec_ET_Launch) && (GetHintSolved(hint17) == 0))
  221.         {
  222.             if(GetHintSolved(hint14) == 0) SetHintSolved(hint14);
  223.             if(GetHintSolved(hint15) == 0) SetHintSolved(hint15);
  224.             if(GetHintSolved(hint16) == 0) SetHintSolved(hint16);
  225.             SetHintSolved(hint17);
  226.         }
  227.         
  228.         else if((sender == srf_Riv1_GoLeft) && (GetHintSolved(hint18) == 0)) SetHintSolved(hint18);
  229.         
  230.         else if((sender == sec_Cndl1_GoRight) && (GetHintSolved(hint19) == 0)) SetHintSolved(hint19);
  231.         
  232.         else if((sender == sec_Cndl1_Dock) && (GetHintSolved(hint20) == 0))
  233.         {
  234.             if(GetHintSolved(hint19) == 0) SetHintSolved(hint19); # failsafe
  235.             SetHintSolved(hint20);
  236.         }
  237.         
  238.         else if((sender == srf_Cndl1_Launch) && (GetHintSolved(hint23) == 0) && (GetHintSolved(hint22) == 1)) SetHintSolved(hint23);
  239.         
  240.         else if((sender == srf_cndl1_GoLeft) && (GetHintSolved(hint24) == 0) && (GetHintSolved(hint23) == 1)) SetHintSolved(hint24);
  241.         
  242.         else if((sender == srf_Cndl2_Launch) && (GetHintSolved(hint26) == 0) && (GetHintSolved(hint25) == 1)) SetHintSolved(hint26);
  243.     
  244.         else if((GetSenderID() == 1) && (GetHintSolved(hint27) == 0) && (GetHintSolved(hint26) == 1)) SetHintSolved(hint27);
  245.         
  246.         else if((sender == sec_ET_Launch) && (GetHintSolved(hint28) == 0) && (GetHintSolved(hint27) == 1)) SetHintSolved(hint28);
  247.         
  248.         else if((sender == srf_Riv1_GoLeft) && (GetHintSolved(hint29) == 0) && (GetHintSolved(hint28) == 1)) SetHintSolved(hint29);
  249.         
  250.         else if((sender == srf_Riv1_GoLeft2) && (GetHintSolved(hint30) == 0) && (GetHintSolved(hint29) == 1))
  251.         {
  252.             SetHintSolved(hint30);
  253.             if(solved_Hint31 == 1)
  254.             {
  255.                 Print("solving hints 31 - 32");
  256.                 # player had already picked up green candle
  257.                 SetHintSolved(hint31);
  258.                 SetHintSolved(hint32);
  259.             }
  260.             
  261.             if(solved_Hint36 == 1)
  262.             {
  263.                 Print("solving hints 33 - 37");
  264.                 # player had already picked up violet candle
  265.                 SetHintSolved(hint33);
  266.                 SetHintSolved(hint34);
  267.                 SetHintSolved(hint35);
  268.                 SetHintSolved(hint36);
  269.                 SetHintSolved(hint37);
  270.             }
  271.         }
  272.         
  273.         else if((sender == srf_Cndl3_Launch) && (GetHintSolved(hint32) == 0) && (GetHintSolved(hint31) == 1)) SetHintSolved(hint32);
  274.         
  275.         else if((sender == sec_Bridge_Dock) && (GetHintSolved(hint33) == 0) && (GetHintSolved(hint32) == 1)) SetHintSolved(hint33);
  276.         
  277.         else if((sender == sec_Mash_Crumb1) && (GetHintSolved(hint34) == 0) && (GetHintSolved(hint33) == 1)) SetHintSolved(hint34);
  278.         
  279.         else if((sender == sec_Mash_Crumb2) && (GetHintSolved(hint35) == 0) && (GetHintSolved(hint34) == 1)) SetHintSolved(hint35);
  280.         
  281.         else if((sender == sec_Bridge_Launch) && (GetHintSolved(hint37) == 0) && (GetHintSolved(hint36) == 1)) SetHintSolved(hint37);
  282.         
  283.         else if((GetSenderID() == 1) && (GetHintSolved(hint38) == 0) && (GetHintSolved(hint37) == 1))  SetHintSolved(hint38);
  284.         
  285.         else if((sender == sec_PatchShack) && (GetHintSolved(hint39) == 0) && (GetHintSolved(hint38) == 1)) SetHintSolved(hint39);
  286.     }
  287.     
  288.     return;
  289.  
  290. # ========================================================================================
  291.  
  292. activated:
  293.  
  294.     Print("hints: activated");
  295.     
  296.     if(source == player)
  297.     {    
  298.         if((GetSenderRef() == candel_Red) && (GetHintSolved(hint22) == 0))
  299.         {
  300.             solved_Hint22 = 1;
  301.             SetHintSolved(hint22);
  302.         }
  303.         
  304.         #else if((GetSenderRef() == candel_Yellow) && (GetHintSolved(hint25) == 0) && (GetHintSolved(hint22) == 1))
  305.         else if((GetSenderRef() == candel_Yellow) && (GetHintSolved(hint25) == 0))
  306.         {
  307.             if(solved_Hint22 == 1)
  308.             {
  309.                 SetHintSolved(hint22);
  310.                 SetHintSolved(hint23);
  311.                 SetHintSolved(hint24);
  312.             }
  313.             SetHintSolved(hint25);
  314.         }
  315.         
  316.         else if((GetSenderRef() == candel_Green) && (GetHintSolved(hint31) == 0))
  317.         {
  318.             solved_Hint31 = 1;
  319.             SetHintSolved(hint31);
  320.         }
  321.         
  322.         else if((GetSenderRef() == candel_Violet) && (GetHintSolved(hint36) == 0))
  323.         {
  324.             solved_Hint36 = 1;
  325.             SetHintSolved(hint36);
  326.         }
  327.     }
  328.     
  329.     return;
  330.  
  331. # ========================================================================================
  332. end
  333.  
  334.